# -*- coding: UTF-8 -*-
'''
Created on 09/10/2014

@author: Eduardo Cardeira - Num 6033

Exemplo 7 da Aula Teorica 3

'''
lista1 = [1, 2, 3, 2, 4, 5, 4, 5, 5, 1, 3]
lista2 = [x for x in set(lista1)]
print lista2

s1 = {'A', 'B', 'C', 'D', 'E'}
s2 = {'A', 'B'}
print s1 & s2, s1 ^ s2, s1 | s2
print s1 < s2, s1 - s2

print s1.union(s2), s1.intersection(s2)
